home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
wg_lib
/
scrfrm.frm
< prev
next >
Wrap
Text File
|
1995-09-06
|
4KB
|
139 lines
VERSION 2.00
Begin Form scrfrm
BackColor = &H00C0C0C0&
Caption = "Scroll Bars and Meter"
ClientHeight = 3825
ClientLeft = 2025
ClientTop = 1725
ClientWidth = 5550
Height = 4230
Left = 1965
LinkMode = 1 'Source
LinkTopic = "Form3"
ScaleHeight = 3825
ScaleWidth = 5550
Top = 1380
Width = 5670
Begin EHScroll1 EHScroll1
Height = 300
LargeChange = 100
Left = 660
Max = 32767
Min = 1
SmallChange = 50
Top = 3195
Value = 1
Width = 3825
End
Begin Meter1 Meter
BackColor = &H00FFFFFF&
ForeColor = &H000000FF&
Height = 330
Index = 2
Inverse = -1 'True
Left = 630
Silent = 0 'False
Top = 2550
UnitsDone = 0
UnitsTotal = 32767
Width = 3915
End
Begin Meter1 Meter
BackColor = &H00FFFFFF&
ForeColor = &H00FF0000&
Height = 330
Index = 1
Inverse = 0 'False
Left = 630
Silent = 0 'False
Top = 1890
UnitsDone = 0
UnitsTotal = 32767
Width = 3915
End
Begin Meter1 Meter
BackColor = &H00FFFFFF&
ForeColor = &H00FF00FF&
Height = 3240
Index = 3
Inverse = 0 'False
Left = 4785
Silent = 0 'False
Top = 285
UnitsDone = 0
UnitsTotal = 32767
Width = 495
End
Begin Label Label3
Alignment = 2 'Center
BorderStyle = 1 'Fixed Single
Caption = "Label3"
Height = 300
Left = 2700
TabIndex = 2
Top = 1335
Width = 690
End
Begin Label Label2
Alignment = 2 'Center
BorderStyle = 1 'Fixed Single
Caption = "Label2"
Height = 300
Left = 1470
TabIndex = 1
Top = 1350
Width = 690
End
Begin Label Label1
BorderStyle = 1 'Fixed Single
Caption = " These Scroll Bars are different: they provide INSTANT feedback. Move the thumb and watch the instant results on our Meter controls and digital readout!"
Height = 855
Left = 660
TabIndex = 0
Top = 255
Width = 3660
End
End
DefInt A-Z
Sub EHScroll1_Change ()
Call UpdateMeters
End Sub
Sub EHScroll1_Changing ()
Call UpdateMeters
End Sub
Sub Form_Load ()
For x = 1 To 3
Meter(x).UnitsDone = 0
Next x
Label2.caption = "0"
Label3.caption = "0%"
End Sub
Sub Form_Paint ()
ConvexFrm ScrFrm, 4
ConcaveCtl Label1, 4
ConcaveCtl Label2, 5
ConcaveCtl Label3, 5
For x = 1 To 3
ConcaveCtl Meter(x), 4
Next x
CtlLabelOvr ScrFrm, Meter(1), "Normal"
CtlLabelOvr ScrFrm, Meter(2), "Inverse/Drain"
CtlLabelOvr ScrFrm, Meter(3), "Vert"
End Sub
Sub UpdateMeters ()
For x = 1 To 3
Meter(x).UnitsDone = EHScroll1.Value
Next x
Label2.caption = Format$(EHScroll1.Value)
Label3.caption = Format$((EHScroll1.Value / EHScroll1.Max), "00.0%")
End Sub